import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const router = new VueRouter({
  mode: 'history',
  base: import.meta.env.BASE_URL,
  routes: [
   
    {
      path: '/classification',
      name: 'classification',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/ClassiFication.vue')
    },
    {
      path: '/navupdate',
      name: 'navupdate',
      component: () => import('../views/NavUpdate.vue')
    },
    {
      path: '/rankinglist',
      name: 'rankinglist',
      component: () => import('../views/RankingList.vue')
    },
    {
      path: '/download',
      name: 'download',
      component: () => import('../views/Download.vue')
    },
    {
      path: '/history',
      name: 'history',
      component: () => import('../views/History.vue')
    },
    {
      path: '/chasecartoon',
      name: 'chasecartoon',
      component: () => import('../views/ChaseCartoon.vue')
    },
    {
      path: '/myuser',
      name: 'myuser',
      component: () => import('../views/MyUser.vue')
    },
    {
      path: '/home',
      name: 'homeview',
      component: () => import('../views/HomeView.vue')
    },
    {
      path: '/',
      name: 'homeview',
      component: () => import('../views/HomeView.vue')
    },
  ]
})

export default router
